﻿using System.Configuration;

namespace Composr.Repository
{
    /// <summary>
    /// singleton wrapping important configuration
    /// </summary>
    internal class Settings
    {
        private static Settings settings;

        private Settings()
        {
        }

        public static Settings Instance
        {
            get{
                if (settings == null) settings = new Settings();
                return settings;
            }
        }

        public string ConnectionString
        {
            get
            {
                return ConfigurationManager.ConnectionStrings["ComposrDB"].ConnectionString;
            }
        }

    }
}